﻿using UnityEngine;
using System.Drawing;
//using System.Drawing.Imaging;
using System.Runtime.InteropServices;
using System.IO;
public class ImageToTexture
{
    //public static Texture2D LoadBitmapTexture(string path)
    //{
    //    using (Bitmap b = Bitmap.FromFile(path) as Bitmap)
    //    {
    //        var width = b.Width;
    //        var height = b.Height;
    //        var background = new Texture2D(width, height);
    //        using (MemoryStream msFinger = new MemoryStream())
    //        {
    //            b.Save(msFinger, ImageFormat.Png);
    //            background.LoadImage(msFinger.ToArray());
    //        }
    //        return background;
    //    }
    //}
}
